import request from '../request'

//患者列表
export const patientList = params => request.globalRequest(`aos/client/patient/patientList`, 'GET', params)

//添加患者
export const addPatient = params => request.globalRequest(`aos/client/patient/addPatient`, 'POST', params)

//删除患者
export const deletePatient = params => request.globalRequest(`aos/client/patient/deletePatient/${params.params.id}`, 'DELETE', params)

//患者详情
export const patientDetail = params => request.globalRequest(`aos/client/patient/patientDetail/${params.params.id}`, 'GET', params)

//修改患者信息
export const updatePatient = params => request.globalRequest(`aos/client/patient/updatePatient`, 'PUT', params)